package top.tangyh.lamp.care.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.care.entity.BHl7RkZdDetail;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 入科诊断明细表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 11:11:31
 * @create [2024-07-15 11:11:31] [zqb] [代码生成器生成]
 */
@Repository
public interface BHl7RkZdDetailMapper extends SuperMapper<BHl7RkZdDetail> {
    /**
     * 根据住院号集合查询入科诊断
     *
     * @param hospitalNumList
     * @return
     */
    default List<BHl7RkZdDetail> selectListByHospitalNumList(Collection<String> hospitalNumList) {
        LambdaQueryWrapper<BHl7RkZdDetail> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(BHl7RkZdDetail::getHospitalNumber, hospitalNumList);
        return this.selectList(queryWrapper);
    }
}


